<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>

<!-- JavaScript -->
<script type="text/javascript" src="<?= base_url() ?>js/wufoo.js"></script>
<!--<script src="<?= base_url() ?>js/chosen.jquery.js" type="text/javascript"></script>-->
<!-- CSS -->
<!--<link rel="stylesheet" type="text/css" href="<?= base_url() ?>css/form/form.css" media="screen, tv, projection" title="Default" />-->
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/datepicker.css" media="screen, tv, projection" title="Default" />
<script type="text/javascript" src="<?= base_url() ?>js/datepicker.js"></script>
<link rel="stylesheet" href="<?php echo base_url() ?>css/chosen.css" />
<?php 
$p_foto = base_url().'uploads/pegawai/';
$p_foto_pdf = 'uploads/pegawai/';

if(is_file($p_foto_pdf.$pegawai->FOTO))
	$url_foto = $p_foto_pdf.$pegawai->FOTO;
else
	$url_foto = $p_foto_pdf.'default1.jpg';

?>
<div>

<table border=0 cellspacing="5" width="300" style="font-size:12px;">
<tr>
	<td align="right" width="150"><img src="images/main/logo_sma.jpg" width="110" height="100" ></td>
	<td>&nbsp;</td>
	<td valign="bottom" width="300" colspan="3"><font size="6">SMA NEGERI 2 SIDOARJO</font><br><font size="3" valign="top"><i>Jl. Lingkar Barat Gading Fajar 2 Sidoarjo</i></font></td>
</tr>
<tr>
	<td colspan="5" align="center">&nbsp;</td>
</tr>	
<tr>
	<td colspan="5" align="center">&nbsp;</td>
</tr>
<tr>
	<td colspan="5" align="center"><font size="3"><b>DETAIL PEGAWAI</b></font></td>
</tr>
<tr>
	<td colspan="5" align="center">&nbsp;</td>
</tr>
</table>
<br>
<table width="500" border=0 style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif ;
	font-weight: normal;
	font-size: 11px;border-collapse: collapse;" cellspacing="0">
	<tr height="70"><td align="left" colspan="4"><b>A.DATA PRIBADI PEGAWAI</b></td></tr>
	<tr height="50">
		<td width="30" align="right">1.</td>
		<td width="80"  align="left">NIP</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->NIP;?></td>
		<td width="100" rowspan="10" align="left"><img src="<?= $url_foto; ?>" width="130" height="150"></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">2.</td>
		<td width="80"  align="left">Nama Pegawai</td>
		<td width="250"  align="left">&nbsp;</td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">a. Lengkap</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if($pegawai->GELAR_DEPAN != ''){ ECHO $pegawai->GELAR_DEPAN.'. ';} ELSE ECHO '';?><?ECHO $pegawai->NAMA_LENGKAP?><?php if($pegawai->GELAR_BELAKANG != ''){ ECHO ', '.$pegawai->GELAR_BELAKANG;} ELSE ECHO '';?></td>
	</tr>
	<tr height="50">
		<td width="30" align="left">&nbsp;</td>
		<td width="80"  align="left">b. Panggilan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->NAMA_PANGGILAN?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">3.</td>
		<td width="80"  align="left">Jenis Kelamin</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->JENIS_KELAMIN?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">4.</td>
		<td width="80"  align="left">Tempat Lahir</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->TEMPAT_LAHIR?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">5.</td>
		<td width="80"  align="left">Tanggal Lahir</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo xFormatDate($pegawai->TANGGAL_LAHIR);?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">6.</td>
		<td width="80"  align="left">Agama</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->NAMA_AGAMA?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">7.</td>
		<td width="80"  align="left">No.Identitas</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->NO_KTP?></td>
	</tr>
	<tr height="50"> 
		<td width="30" align="right">8.</td>
		<td width="80"  align="left">Status</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php if($pegawai->MENIKAH == 1) ECHO 'MENIKAH'; else echo 'BELUM MENIKAH';?></td>
	</tr>
	<tr height="70"><td align="left" colspan="4"><b>B.KETERANGAN TEMPAT TINGGAL</b></td></tr>
	<tr height="50">
		<td width="30" align="right">9.</td>
		<td width="80"  align="left">Alamat</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->ALAMAT_ASAL ?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">10.</td>
		<td width="80"  align="left">Telepon</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->TELEPON ?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">11.</td>
		<td width="80"  align="left">Handphone</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->HP ?></td>
	</tr>
	<tr height="50">
		<td width="30" align="right">12.</td>
		<td width="80"  align="left">Email</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->EMAIL ?></td>
	</tr>
	<tr height="70"><td align="left" colspan="4"><b>C.KETERANGAN LAINNYA</b></td></tr>
	<tr height="50">
		<td width="30" align="right">13.</td>
		<td width="80"  align="left">Keterangan</td>
		<td width="250"  align="left">:&nbsp;&nbsp;&nbsp;<?php echo $pegawai->KETERANGAN?></td>
	</tr>
</table>
</div>